package com.tsd.base.dao;

import com.tsd.base.entity.BaseExpressOrgItem;
import com.tsd.base.entity.BaseExpressOrgItemExt;
import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseExpressOrgItemMapper
 *
 * @author Hillpool
 * @date 2021/04/15 11:17:56
 */
public interface BaseExpressOrgItemMapper {

    BaseExpressOrgItem selectByPrimaryKey(Long id);

    BaseExpressOrgItemExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(BaseExpressOrgItem record);

    int insertSelective(BaseExpressOrgItem record);

    int updateByPrimaryKey(BaseExpressOrgItem record);

    int updateByPrimaryKeySelective(BaseExpressOrgItem record);

    List<BaseExpressOrgItemExt> selectByEntity(BaseExpressOrgItemExt record);

    List<BaseExpressOrgItemExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseExpressOrgItemExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseExpressOrgItemExt> selectByParams(@Param("params") Map<String, Object> params);

    int deleteLogicByIdList(BatchDeleteLogicVo logicVo);

    int insertList(@Param("list") List<BaseExpressOrgItemExt> list);

    int updateList(@Param("list") List<BaseExpressOrgItemExt> list);
}
